OTCloneConfiguration
Copies anOTConfiguration
structure.C INTERFACE
OTConfiguration* OTCloneConfiguration(OTConfiguration* cfig);C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
cfig
- A pointer to the
OTConfiguration
structure that you want
to copy.DESCRIPTION
TheOTCloneConfiguration
function copies theOTConfiguration
structure that you specify in thecfig
parameter and returns a pointer to the copy. Because the internal format of anOTConfiguration
structure is private, you must use theOTCloneConfiguration
function to obtain two identical structures. For example, you can use this function when another application passes you a configuration structure that you want to reuse but for which you do not have the original configuration string. By cloning the structure, you have access to an additional copy of the configuration even without knowing its configuration string.SEE ALSO
For more information about creating configuration structures, see the sections "About Provider Configurations" (page 6-3) and "Creating and Reusing Provider Configurations" (page 6-10).To create an
OTConfiguration
structure, call theOTCreateConfiguration
function (page 6-27).To delete an
OTConfiguration
structure, call theOTDestroyConfiguration
function (page 6-30).